
export const leftSearchConfig = [
  {
    type: 'input',
    value: '',
    label: '标题',
    keyIndex: 'id',
    placeholder: '请输入标题',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '创建人',
    keyIndex: 'title',
    placeholder: '请输入创建人名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '部门',
    keyIndex: 'updater',
    placeholder: '请输入部门名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '企业名称',
    keyIndex: 'companyName',
    placeholder: '请输入企业名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  }
]

export const middleSearchConfig = [
  {
    type: 'input',
    value: '',
    label: '标题',
    keyIndex: 'title',
    placeholder: '请输入标题名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '企业',
    keyIndex: 'companyName',
    placeholder: '请输入企业名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '创建人',
    keyIndex: 'creator',
    placeholder: '请输入创建人名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '部门',
    keyIndex: 'dept',
    placeholder: '请输入所在部门',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  }
]

export const addColumnConfig = [
  {
    type: 'input',
    value: '',
    label: '标题',
    keyIndex: 'title',
    placeholder: '输入标题。100字以内',
    span: 24,
    rules: { required: true, message: '请输入标题', trigger: 'change' },
    visible: true,
    inputWidth: '500px',
    inputRef: 'name',
    maxlength: 100,
    showWordLimit: true,
    inputType: 'text'
  },
  {
    type: 'input',
    value: '',
    label: '企业',
    keyIndex: 'companyName',
    placeholder: '请输入企业名称',
    span: 4,
    visible: true,
    inputWidth: '500px',
    size: 'small'
  },
  {
    type: 'select',
    value: '',
    label: '关联项目',
    keyIndex: 'projectId',
    span: 24,
    rules: { required: true, message: '请选择关联项目', trigger: 'change' },
    inputWidth: '500px',
    filterable: true,
    options: [],
    disabled: false
  },
  {
    type: 'input',
    value: '',
    label: '发布单位',
    keyIndex: 'releaseUnit',
    placeholder: '输入发布单位。100字以内',
    span: 24,
    rules: { required: true, message: '请输入发布单位', trigger: 'change' },
    visible: true,
    inputWidth: '500px',
    inputRef: 'name',
    maxlength: 100,
    showWordLimit: true,
    inputType: 'text'
  },
  {
    type: 'edit',
    value: '',
    label: '详情',
    keyIndex: 'resultConnect',
    placeholder: '请输入详情',
    span: 24,
    visible: true,
    inputWidth: '80%',
    height: '300px'
  }
]

export const leftTableConfig = {
  colums: [
    {
      props: 'title',
      label: '标题',
      width: 220,
      align: 'left',
      showOverflowTooltip: false
    },
    {
      props: 'companyName',
      label: '企业名称',
      width: 160,
      align: 'left',
      showOverflowTooltip: false
    },
    {
      props: 'creator',
      label: '创建人'
    },
    {
      props: 'examineFlagStr',
      label: '是否已审核'
    },
    {
      props: 'examineStatusStr',
      label: '是否通过'
    },
    {
      props: 'dept',
      label: '部门'
    },
    {
      props: 'job',
      label: '职位'
    },
    {
      props: 'updateTime',
      label: '更新时间',
      sortable: true
    }
  ],
  // showSelection: true,
  showIndex: true
}

export const resultClassifiyConfig = {
  colums: [
    {
      props: 'title',
      label: '标题',
      width: 260,
      align: 'left',
      showOverflowTooltip: false
    },
    {
      props: 'releaseUnit',
      label: '发布单位',
      width: 200,
      align: 'left',
      showOverflowTooltip: false
    },
    {
      props: 'creator',
      label: '创建人'
    },
    {
      props: 'creatorRole',
      label: '创建角色'
    },
    {
      props: 'statusStr',
      label: '状态'
    },
    {
      props: 'updateTime',
      label: '更新时间',
      sortable: true
    }
  ],
  showSelection: true,
  showIndex: true
}

export const auditTableConfig = {
  colums: [
    {
      props: 'title',
      label: '标题',
      width: 220,
      align: 'left',
      showOverflowTooltip: false
    },
    {
      props: 'releaseUnit',
      label: '发布单位',
      width: 160,
      align: 'left',
      showOverflowTooltip: false
    },
    {
      props: 'creator',
      label: '创建人'
    },
    {
      props: 'statusStr',
      label: '状态'
    },
    {
      props: 'updateTime',
      label: '更新时间',
      sortable: true
    }
  ],
  showSelection: true,
  showIndex: true
}

export const recycleBinSearchConfig = [
  {
    type: 'input',
    value: '',
    label: '标题',
    keyIndex: 'id',
    placeholder: '请输入标题',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '企业',
    keyIndex: 'id',
    placeholder: '请输入企业名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'select',
    value: '',
    options: [

      {
        label: '审核中',
        value: '1'
      },
      {
        label: '已通过',
        value: '0'
      },
      {
        label: '已拒绝',
        value: '2'
      }
    ],
    label: '状态',
    keyIndex: 'status',
    placeholder: '请选择',
    span: 4,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '创建人',
    keyIndex: 'updater',
    placeholder: '请输入创建人名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  }
]
export const recycleBinConfig = {
  colums: [
    {
      props: 'name',
      label: '标题',
      sortable: true
    },
    {
      props: 'num',
      label: '发布单位'
    },
    {
      props: 'statusStr',
      label: '创建人'

    },
    {
      props: 'creator',
      label: '状态'
    },
    {
      props: 'updateTimeStr',
      label: '更新时间',
      sortable: true
    }

  ],
  showIndex: true,
  showSelection: true
}
